package com.mark.maven.ddd.domain.service.impl;

import com.mark.maven.ddd.domain.CreateOrderDomainRequest;
import com.mark.maven.ddd.domain.CreateOrderDomainResponse;
import com.mark.maven.ddd.domain.service.CreateOrderDomainService;
import org.springframework.stereotype.Service;

import java.util.UUID;

@Service
public class CreateOrderDomainServiceImpl implements CreateOrderDomainService {
    @Override
    public CreateOrderDomainResponse createOrder(CreateOrderDomainRequest request) {
        return CreateOrderDomainResponse.builder().orderNo(UUID.randomUUID().toString()).build();
    }
}
